package edu.mju.scenic.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import edu.mju.scenic.dto.ScenicSpotDto;
import edu.mju.scenic.entity.Spot;
import com.baomidou.mybatisplus.extension.service.IService;
import edu.mju.scenic.vo.IndexSpotVo;

import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author CBL
 * @since 2020-12-28
 */
public interface SpotService extends IService<Spot> {

    Map<String, Object> getSpotList(IPage<Spot> spotPage, ScenicSpotDto scenicSpotDto);

    void saveOrUpdateSpot(IndexSpotVo indexSpotVo);

    int deleteScenicSpot(Integer id);

    Map<String, Object> getScenicSpotAllInfo(Integer id);
}
